<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:cc="http://java.sun.com/jsf/composite">
    <cc:interface>
        <cc:attribute name="bean"/>
        <cc:attribute name="disativarPesquisar"/>
        <cc:attribute name="disativarIncluir"/>        
    </cc:interface>
    <cc:implementation>
    
    	<p:toolbar>  
		    <p:toolbarGroup align="left">  
		        <p:commandButton disabled="#{cc.attrs.disativarPesquisar}" value="#{i18n['botao.pesquisar']}" ajax="true" process="formListar" update="grade:tabela,grade:primeiro,grade:anterior,grade:proximo,grade:ultimo,grade:paginas" action="#{cc.attrs.bean.pesquisar}" style="width: 120px" image="ui-icon ui-icon-search"/>  
		        <p:commandButton disabled="#{cc.attrs.disativarIncluir}" value="#{i18n['botao.incluir']}" ajax="false" action="#{cc.attrs.bean.incluir}" style="width: 120px" image="ui-icon ui-icon-document"/>   
		        <p:divider />  
		        <p:commandButton type="push" title="Save" image="ui-icon-disk"/>  
		        <p:commandButton type="push" title="Delete" image="ui-icon-trash"/>  
		        <p:commandButton type="push" title="Print" image="ui-icon-print"/>  
		    </p:toolbarGroup>  
		    <p:divider />  
		    <p:toolbarGroup align="right">  
		        <p:menuButton value="Navigate">  
		            <p:menuitem value="Home" url="http://www.primefaces.org" />  
		            <p:menuitem value="ShowCase"  
		                        url="http://www.primefaces.org/showcase" />  
		            <p:menuitem value="TouchFaces"  
		                        url="http://www.primefaces.org/showcase/touch" />  
		        </p:menuButton>  
		    </p:toolbarGroup>  
	  </p:toolbar>  
		<br/>    
        <p:panel toggleable="false" closable="false" header="Filtro">  
			<cc:insertChildren/>
		</p:panel>
    </cc:implementation>
</html>